package nl.project.data;

public class User {
	protected String title; //miss, sir etc.
	protected String initials;
	protected String firstName;
	protected String preposition;
	protected String surName;
	
	public String getName() {
		StringBuilder sb = new StringBuilder();
		if (title != null) {
			sb.append(title + " ");
		}
		if (initials != null) {
			sb.append(initials + " ");
		}
		if (firstName != null) {
			sb.append(firstName + " ");
		}
		if (preposition != null) {
			sb.append(preposition + " ");
		}
		if (surName != null) {
			sb.append(surName);
		}
		return sb.toString();
	}
}